#!/bin/bash
#!/bin/bash
#############
#Date 2022/6/8
#mail it-arch
#############
echo "##########################################"
echo "Auto Install zabbix.                    ##"
echo "Press Ctrl + C to cancel                ##"
echo "Any key to continue                     ##"
echo "##########################################"
read -n 1
/etc/init.d/iptables status >/dev/null 2>&1
if [ $? -eq 0 ]
then
iptables -I INPUT -p tcp --dport 80 -j ACCEPT && 
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT && 
iptables-save >/dev/null 2>&1
else
	echo -e "\033[32m iptables is stopd\033[0m"
fi
sed -i "s/SELINUX=enforcing/SELINUX=disabled/"  /etc/selinux/config
setenforce 0
#######################################################
yum -y install epel-release git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel 
cd /opt
git clone https://github.com/jumpserver/jumpserver.git 
cd jumpserver/install && pip install -r requirements.txt 
pip freeze 
python install.py 



